/*
 * @Author: your name
 * @Date: 2022-03-31 10:21:43
 * @LastEditTime: 2022-04-01 17:48:52
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \beijing-dushixiang-manyuan\src\api\message.js
 */
import request from '@/utils/axios'
const baseOid = process.env.VUE_APP_URL
import {
  URL_API
} from '@/utils/mUtils'
const base = URL_API()

export function reqWarningData() {
  return request({
    url: `${baseOid}/api/news/early/warning`,
    method: 'get'
  })
}
export function reqNoticeData() {
  return request({
    url: `${baseOid}/api/news/notice/list`,
    method: 'get'
  })
}
export function reqActivtiyData() {
  return request({
    url: `${baseOid}/api/news/activity/message/list`,
    method: 'get'
  })
}
export function reqInformData() {
  return request({
    url: `${baseOid}/api/news/notice/list/details`,
    method: 'get'
  })
}
//新建公告
export function reqAddNotice(params) {
  return request({
    url: `${baseOid}/api/news/create/announcement`,
    method: 'post',
    data: params
  })
}
//发布公告
export function reqPublishNotice(params) {
  return request({
    url: `${baseOid}/api/news/announcement?order_code=${params}`,
    method: 'get'
  })
}
//撤销和已读公告
export function reqCancelNotice(params) {
  return request({
    url: `${baseOid}/api/news/has/it/been/read?order_code=${params}`,
    method: 'get'
  })
}
//删除公告
export function reqDeleteNotice(params) {
  return request({
    url: `${baseOid}/api/news/del/announcement?order_code=${params}`,
    method: 'get'
  })
}

//异常列表 接口  
export function AbnormalList(params) {
  return request({
    url: `${base}/api/abnormal_record/list`,
    method: 'post',
    data: params,
  })
}

//异常删除接口
export function DeleteAbnormal(params) {
  return request({
    url: `${base}/api/abnormal_record/delete`,
    method: 'post',
    data: params,
  })
}

//异常编辑接口  
export function UpdateAbnormal(params) {
  return request({
    url: `${base}/api/abnormal_record/update`,
    method: 'put',
    data: params,
    headers: {
      "token": '1ba4686338ee7354395ad13f7d3466c1'
    },
  })
}
//异常详情  
export function AbnormalRecordDetail(params) {
  return request({
    url: `${base}/api/abnormal_record/detail`,
    method: 'post',
    data: params,
    headers: {
      "token": '1ba4686338ee7354395ad13f7d3466c1'
    },
  })
}

//异常处理接口  
export function AbnormalRecordDeal(params) {
  return request({
    url: `${base}/api/abnormal_record/action/deal`,
    method: 'post',
    data: params,
    headers: {
      "token": '1ba4686338ee7354395ad13f7d3466c1'
    },
  })
}

//操作日志列表接口
export function systemloglist(params) {
  return request({
    url: `${base}/api/systemlog/list`,
    method: 'post',
    data: params,
  })
}
//操作日志列表接口
export function feedbackCreate(params) {
  return request({
    url: `${base}/api/feedback/create`,
    method: 'post',
    data: params,
  })
}
// 意见反馈列表
export function feedbackList(params) {
  return request({
    url: `${base}/api/feedback/list`,
    method: 'post',
    data: params,
  })
}
// 意见反馈列表
export function feedbackDetail(params) {
  return request({
    url: `${base}/api/feedback/detail`,
    method: 'post',
    data: params,
  })
}
// 意见反馈列表
export function feedbackFollow_up(params) {
  return request({
    url: `${base}/api/feedback/follow_up`,
    method: 'post',
    data: params,
  })
}

// 我的消息列表
export function reqMyMessagesList(params) {
  return request({
    url: `${base}/api/station_mail/list`,
    method: 'post',
    data: params,
  })
}

// 我的消息详情
export function reqMyMessagesDetail(params) {
  return request({
    url: `${base}/api/station_mail/detail`,
    method: 'post',
    data: params,
  })
}
// 系统操作日志列表接口
export function operateList(params) {
  return request({
    url: `${base}/api/systemlog/operate/list`,
    method: 'post',
    data: params,
  })
}

// 意见反馈导出
export function feedbackexport(params) {
  return request({
    url: `${base}/api/feedback/export`,
    method: 'post',
    data: params,
  })
}

// 客户满意度列表
export function reqSatisfactionList(params) {
  return request({
    url: `${base}/api/feedback/report/list`,
    method: 'post',
    data: params,
  })
}

// 客户满意度详情列表
export function reqSatisfactionDetailList(params) {
  return request({
    url: `${base}/api/feedback/list`,
    method: 'post',
    data: params,
  })
}
// 订单查询功能能
export function waybilltransporttransport(params) {
  return request({
    url: `${base}/api/waybill/transport/process`,
    method: 'post',
    data: params,
  })
}